export function getToken(){
    return localStorage.getItem('token');
}

export function setToken(token){
    localStorage.setItem('token', token);
}

export function clearToken(token){
    localStorage.removeItem('token');
}

export function isLogin(){
    if (localStorage.getItem('token')) {
        return true;
    }
    return false;
}
